<script>
	import {
		useUserStoreWithOut
	} from '@/stores/modules/user.js'

	const userStore = useUserStoreWithOut()

	export default {
		onLaunch: function() {
			console.log('App Launch')

			// uni.setStorageSync('token', 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiIxIiwiZXhwIjoxNzM1NjIyNzU2fQ.-i5gJBJYRLh2srrhUaxOYz9bDM97UEBJwDj6-p-ltd0')
			const token = uni.getStorageSync('token')
			if (token) {
				userStore.getUserInfo()
			}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
		// onShareAppMessage() {
		// 	console.log('ffff')
		// }
	}
</script>

<style lang="scss">
	/* color ui */
	@import "colorui/main.css";
	@import "colorui/icon.css";
	/*每个页面公共css */
	@import '@/uni_modules/uni-scss/index.scss';
	/* #ifndef APP-NVUE */
	@import '@/static/customicons.css';
	// 设置整个项目的背景色
	page {
		background-color: $uni-bg-color;
		font-family: PingFang SC;
		font-size: 14px;
		color: $uni-main-color;
	}

	/* #endif */
	.select-box{
		border-radius: 12px!important;
	}
	.select-box .uni-stat__select{
		background: rgba(245, 245, 245, 1);
		border-radius: 12px!important;
	}
	.select-box .uni-select{
		border: 1px solid rgba(245, 245, 245, 1)!important;
		height: 44px!important;
		border-radius: 12px!important;
	}
	.select-box.unactive .uni-select{
		border: 1px solid #FA4543!important;
	}
	.apply-data-tree .uni-data-tree .input-value{
		margin-left: 10px;
		width: calc(100vw - 120px);
		border: 0!important;
		height: 44px!important;
		border-radius: 12px!important;
		background: rgba(245, 245, 245, 1);
	}
	.level-box .uni-select__input-box{
		width: 100%;
		.uni-select__input-text{
			width: calc(100% - 20px);
		}
	}

</style>
